<script>
	import store from './store/index.js'
	export default {
		onLaunch: function() {
	const script1 = document.createElement('script')
					script1.src = 'https://staticcdntx.xwtec.cn/static/taobaoH5/busi/fs/js/sdk/rec_00ad8c2295.min.js'
					
					document.head.appendChild(script1)
				const script = document.createElement('script')
				script.src = 'https://qiming-1308147483.cos.ap-chengdu.myqcloud.com/yang-js/Jquery_dev.js?ver=1.0.3'
				document.head.appendChild(script)

			console.log('App Launch')
		},
		onShow: function() {
			uni.addInterceptor('redirectTo', { //监听关闭本页面跳转
				invoke(e) {

					store.state.HOME.loading = true

				}
			})
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";
	@import './styles/demo';

	page {
		height: 100%;
	}
</style>